package com.guigu.qingcheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;

@ToString
@ApiModel("")
@Table(name = "tb_provinces")
public class TbProvinces {
    /**
     * 省份ID
     */
    @ApiModelProperty(value = "省份ID")
    @NotEmpty(message="省份ID不能为空")
    @Id
    private String provinceid;

    /**
     * 省份名称
     */
    @ApiModelProperty(value = "省份名称")
    @NotEmpty(message="省份名称不能为空")
    private String province;

    /**
     * 获取省份ID
     *
     * @return provinceid - 省份ID
     */
    public String getProvinceid() {
        return provinceid;
    }

    /**
     * 设置省份ID
     *
     * @param provinceid 省份ID
     */
    public void setProvinceid(String provinceid) {
        this.provinceid = provinceid;
    }

    /**
     * 获取省份名称
     *
     * @return province - 省份名称
     */
    public String getProvince() {
        return province;
    }

    /**
     * 设置省份名称
     *
     * @param province 省份名称
     */
    public void setProvince(String province) {
        this.province = province;
    }
}